package com.example.fristactivity;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

public class SecondActivity2 extends AppCompatActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.second_layout2);
        TextView textview=(TextView) findViewById(R.id.text2);
        Intent intent=getIntent();
        textview.setText(intent.getStringExtra("TextView"));
    }
}